Improvements to the Custom interface.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 12 Mar 2010 22:56:30 +0000 (17:56 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 12 Mar 2010 22:56:30 +0000 (17:56 -0500)
commite30bb2f1055439c04573444eba9f31e2cff92574
treeaed658fe165bf6fed21c6dbee32237b3aa517e33
parent8b223b9a5e4455f4f174eb00f963bd3a59dda390
Improvements to the Custom interface.

* cus-edit.el: Resort topmost custom groups.
(custom-buffer-sort-alphabetically): Default to t.
(customize-apropos): Use apropos-parse-pattern.
(custom-search-field): New var.
(custom-buffer-create-internal): Add custom-apropos search field.
(custom-add-parent-links): Don't display parent doc.
(custom-group-value-create): Don't sort top-level custom group.
(custom-magic-value-create): Show visibility button before option
name.

(custom-variable-state): New fun, from custom-variable-state-set.
(custom-variable-state-set): Use it.
(custom-group-value-create): Hide options with standard values
using the :hidden-states property.  Use progress reporter.

(custom-show): Simplify.
(custom-visibility): Disable images by default.
(custom-variable): New property :hidden-states.
(custom-variable-value-create): Enable images for
custom-visibility widgets.  Use :hidden-states property to
determine initial visibility.

* wid-edit.el (widget-image-find): Give images center ascent.
(visibility): Add :on-image and :off-image properties.
(widget-visibility-value-create): Use them.
lisp/ChangeLog
lisp/cus-edit.el
lisp/wid-edit.el